<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        .bg{
            border: 1px solid green;
            width: 300px;
            height: 400px;
            margin: auto;
            background: url(./bg.gif)
        }
        .tittle>p{
            font-size: 28px;
            font-weight:bold;
            color: white;
        }
        .tittle{
            border-left: 5px solid rgb(166, 231, 62);
            padding: 9px;
            margin: 9px;
            line-height: 25px;
        }
        .body{
            background-color: #fff;
            width: 270px;
            height: 315px;
            margin: auto;
        }
        li{
            margin: auto;
            list-style: none;
            border-bottom: 1px dashed gray;
            line-height: 34px;
            padding-left: 25px;
            margin-left: 15px;
            margin-right: 15px;
            background: url(./tb.gif) no-repeat left center; 
            background-size: 8%;
            color: purple;
        }
    </style>
</head>
<body>
    <div class="bg">
    <div class="tittle">
        <p>爱宠知识</p>
    </div>
    <div class="body">
        <ul>
            <li>养狗比养猫对健康更有利</li>
            <li>养狗比养猫对健康更有利</li>
            <li>养狗比养猫对健康更有利</li>
            <li>养狗比养猫对健康更有利</li>
            <li>养狗比养猫对健康更有利</li>
            <li>养狗比养猫对健康更有利</li>
            <li>养狗比养猫对健康更有利</li>
            <li>养狗比养猫对健康更有利</li>
            <li>养狗比养猫对健康更有利</li>
        </ul>
    </div>
    </div>
</body>
</html>